home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9930 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  36 lines

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: champalber@aol.com (Champalber)
  3. Newsgroups: comp.lang.c++
  4. Subject: Using a dialog box as a main window
  5. Date: 4 Mar 1996 20:59:33 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4hg765$p8c@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: newsbf02.mail.aol.com
  10. X-Newsreader: AOL Offline Reader
  11.  
  12. Does anybody know how to use a dialog resource as your main window,
  13. (looking at it another way) or how to use the resource Workshop to draw a
  14. main window?
  15. I'm using BC++ 3.1 with OWL, and when I say:
  16.  
  17.  
  18. virtual void InitMainWindow() { MainWindow = new TMyDialog ; } 
  19.  
  20. (where TMyDialog decends from TDialog)
  21.  
  22.  
  23. It compiles okay, and then when I run, I get "Error: 5" and "Error: 3".
  24.  
  25. Note: in TurboPascal OWL (Which is almost identical to BC++ OWL), you have
  26. a decendant of TDialog called TDlgWindow, which I can use to turn a dialog
  27. box into the main window (just what I want). The help file tells me that
  28. this class combines a TDialog with some extra stuff. Alas there is no
  29. TDlgWindow in BC++ OWL.
  30.  
  31. Richard Champalbert
  32. champalber@aol.com
  33.  
  34. Champalbert
  35. champlaber@aol.com
  36.